package com.ideaaedi.zoo.example.springboot.flowable.sharding.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Administrator
 * @since 1.0.0
 */
@Getter
@Setter
@TableName("ACT_HI_COMMENT")
@Schema(name = "ActHiCommentPO", description = "评论")
public class ActHiCommentPO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId("ID_")
    @Schema(description = "id")
    private String id;

    @TableField("TYPE_")
    @Schema(description = "类型")
    private String type;

    @TableField("TIME_")
    @Schema(description = "时间")
    private Date time;

    @TableField("USER_ID_")
    @Schema(description = "用户ID")
    private String userId;

    @TableField("TASK_ID_")
    @Schema(description = "任务ID")
    private String taskId;

    @TableField("PROC_INST_ID_")
    @Schema(description = "流程实例ID")
    private String procInstId;

    @TableField("ACTION_")
    @Schema(description = "行为类型")
    private String action;

    @TableField("MESSAGE_")
    @Schema(description = "内容", $comment = "前4000个字符，超出的将以...省略。完整内容见fullMsg")
    private String message;

    @TableField("FULL_MSG_")
    @Schema(description = "完整内容")
    private byte[] fullMsg;
    
    @Schema(description = "日期（yyyy-MM-dd）")
    @TableField("sharding_date")
    private String shardingDate;
}
